package users.dawn.beans;

import java.util.HashMap;
import java.util.Map;

@SuppressWarnings("javadoc")
public class DatabaseParameters
{
	private Map<DBParamKey, String> params = new HashMap<DBParamKey, String>();

	
	/**
	 * Default constructor for DatabaseParameters.
	 */
	public DatabaseParameters(Map<DBParamKey, String> params)
	{
		this.params = params;
	}
	
	public String getValue(DBParamKey key)
	{
		return params.get(key);
	}
	
	public void myInit()
	{
		System.out.println("DatabaseParameters.myInit");
	}
	
	public void init()
	{
		System.out.println("DatabaseParameters.init");
	}
	
	public void destroy()
	{
		System.out.println("DatabaseParameters.destroy");
	}
	
	@Override
	public String toString() {
		return params != null ? params.toString() : "Empty params";
	}
	
	
}
